package com.fafu.mybatis.demo.mapper;

import com.fafu.mybatis.demo.modal.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserInfoXmlMapper {
    List<UserInfo> selectAll();

    Integer insertUser(UserInfo userInfo);

    Integer insertUser2(@Param("userInfo") UserInfo userInfo);

    Integer updateUser(Integer id, String password);

    Integer updateUser(UserInfo userInfo);

    Integer deleteUserById(Integer id);

    List<UserInfo> selectAll2();

    List<UserInfo> selectAll3();


}
